<?php

namespace haibao\ad\model\data;

class Banner extends \haibao\ad\model\data\Base{
	
	const WEIGHT_HIGH = 1;
	const WEIGHT_NONE = 0;
	const YIZHI_YES = 1;
    /**
     * 广告id
     */
    public $bannerid;
	public $clientid;
	public $active;
	public $priority;
	/**
	 * 素材格式
	 */
	public $contenttype;
	public $pluginversion;
	/**
	 * 广告类型
	 */
	public $storagetype;
	/**
	 * 素材名称
	 */
	public $filename;
	/**
	 * 素材地址
	 */
	public $imageurl;
	public $htmltemplate;
	public $htmlcache;
	public $width;
	public $height;
	/**
	 * 权重
	 */
	public $weight;
	public $seq;
	public $target;
	/**
	 * 广告链接
	 */
	public $url;
	public $alt;
	public $status;
	public $keyword;
	public $bannertext;
	public $description;
	public $autohtml;
	public $block;
	public $capping;
	/**
	 * 广告排期
	 */
	public $compiledlimitation;
	public $append;
	public $appendtype;
	public $bannertype;
	public $transparent;
	public $zone_id;
	public $order_id;
	public $interface_banner_id;
	/**
	 * pv监测代码
	 */
	public $pv_detection;
	public $click_detection;
	public $updatetime;
	public $field;
	public $datastr;
	public $islun;
	public $clicks;
	/**
	 * 是否持续投放
	 */
	public $yizhi;
	/**
	 * 定向投放（屏蔽）城市
	 */
	public $city;
	public $handbind;
	public $title;
	public $linkSource;
	public $video_url;
	public $html_type;
	public $viewable;
    public $interface_zone_id;
    public $order_weight;
    
    public function __construct() {
        parent::__construct();
        
        $this->intField('bannerid','bannerid',true);
        $this->intField('clientid','clientid',true);
        $this->stringField('enum','enum');
        $this->intField('priority','priority');
        $this->stringField('contenttype','contenttype');
        $this->intField('pluginversion','pluginversion');
        $this->stringField('filename','filename');
        $this->stringField('storagetype','storagetype');
        $this->stringField('imageurl','imageurl');
        $this->stringField('htmltemplate','htmltemplate');
        $this->stringField('htmlcache','htmlcache');
        $this->intField('width','width');
        $this->intField('height','height');
        $this->intField('weight','weight');
        $this->intField('seq','seq');
        $this->stringField('target','target');
        $this->stringField('url','url');
        $this->stringField('alt','alt');
        $this->stringField('status','status');
        $this->stringField('keyword','keyword');
        $this->stringField('bannertext','bannertext');
        $this->stringField('description','description');
        $this->stringField('autohtml','autohtml');
        $this->intField('block','block');
        $this->intField('capping','capping');
        $this->stringField('compiledlimitation','compiledlimitation');
        $this->stringField('append','append');
        $this->intField('appendtype','appendtype');
        $this->intField('bannertype','bannertype');
        $this->intField('zone_id','zone_id');
        $this->intField('order_id','order_id');
        $this->intField('interface_banner_id','interface_banner_id');
        $this->intField('yizhi','yizhi');
        $this->stringField('city','city');
        
        $this->dateField('updat_time','updat_time');
        $this->dateField('date_time','date_time');
        
        $this->setTableName('banners');
    }
}

 